#include "functions.h"

using std::string;
using std::map;

functions::functions()
{
}

functions::functions(const string& name_, big_int(*f_)(big_int)) : name(name_), f(f_)
{
}

string functions::get_name() const
{
	return name;
}

big_int functions::operator()(big_int arg) const
{
	return f(arg);
}

map<string, functions>& get_functions()
{
	static map<string, functions> functions_;
	return functions_;
}
